<template>
  <div class="container">
    <router-view v-slot="{ Component, route }">
      <transition name="slide">
        <component
          :is="Component"
          :key="$route.fullPath" />
      </transition>
    </router-view>
    <Drawer />
  </div>
</template>

<script lang="ts" setup>
import Drawer from './components/Drawer.vue';
</script>

<style lang="less" scoped>
.slide-enter-active,
.slide-leave-active {
  transition: all 0.75s ease !important;
}

.slide-enter-from {
  position: absolute;
  bottom: -100%;
}

.slide-enter-to {
  position: absolute;
  bottom: 0;
}

.slide-leave-from {
  position: absolute;
  top: 0;
}
.slide-leave-to {
  position: absolute;
  top: -100%;
}
</style>

<style lang="less">
.el-popover {
  min-width: 60px !important;
}
.search-tip {
  padding: 0 5px !important;
  inset: 8vh auto auto 21.5vw !important;
}
.el-popper__arrow::before {
  display: none !important;
}
</style>
